﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;

namespace H2.NET.Web.Pages.SMD.Model
{
    [Table]
    [Serializable]
    public partial class t_smd_CrmSync : DataObject
    {


        /// <summary>
        /// Id
        /// </summary>
        [ID]
        [Column]
        [IDENTITY]
        public string Id { get { return fID; } set { fID = value; EntityState.FieldChange("Id"); } }
        private string fID;
        public static FieldInfo _Id = new FieldInfo("t_smd_CrmSync", "Id");

        /// <summary>
        /// name
        /// </summary>
        [Column]
        [IDENTITY]
        public string name { get { return fNAME; } set { fNAME = value; EntityState.FieldChange("name"); } }
        private string fNAME;
        public static FieldInfo _name = new FieldInfo("t_smd_CrmSync", "name");

        /// <summary>
        /// created_at
        /// </summary>
        [Column]
        [IDENTITY]
        public DateTime? created_at { get { return fCREATED_AT; } set { fCREATED_AT = value; EntityState.FieldChange("created_at"); } }
        private DateTime? fCREATED_AT;
        public static FieldInfo _created_at = new FieldInfo("t_smd_CrmSync", "created_at");

        /// <summary>
        /// primary_an_brand_id
        /// </summary>
        [Column]
        [IDENTITY]
        public string primary_an_brand_id { get { return fPRIMARY_AN_BRAND_ID; } set { fPRIMARY_AN_BRAND_ID = value; EntityState.FieldChange("primary_an_brand_id"); } }
        private string fPRIMARY_AN_BRAND_ID;
        public static FieldInfo _primary_an_brand_id = new FieldInfo("t_smd_CrmSync", "primary_an_brand_id");

        /// <summary>
        /// store_type_id
        /// </summary>
        [Column]
        [IDENTITY]
        public string store_type_id { get { return fSTORE_TYPE_ID; } set { fSTORE_TYPE_ID = value; EntityState.FieldChange("store_type_id"); } }
        private string fSTORE_TYPE_ID;
        public static FieldInfo _store_type_id = new FieldInfo("t_smd_CrmSync", "store_type_id");

        /// <summary>
        /// store_decoration_type_id
        /// </summary>
        [Column]
        [IDENTITY]
        public string store_decoration_type_id { get { return fSTORE_DECORATION_TYPE_ID; } set { fSTORE_DECORATION_TYPE_ID = value; EntityState.FieldChange("store_decoration_type_id"); } }
        private string fSTORE_DECORATION_TYPE_ID;
        public static FieldInfo _store_decoration_type_id = new FieldInfo("t_smd_CrmSync", "store_decoration_type_id");

        /// <summary>
        /// region_of_sales_id
        /// </summary>
        [Column]
        [IDENTITY]
        public string region_of_sales_id { get { return fREGION_OF_SALES_ID; } set { fREGION_OF_SALES_ID = value; EntityState.FieldChange("region_of_sales_id"); } }
        private string fREGION_OF_SALES_ID;
        public static FieldInfo _region_of_sales_id = new FieldInfo("t_smd_CrmSync", "region_of_sales_id");

        /// <summary>
        /// city
        /// </summary>
        [Column]
        [IDENTITY]
        public string city { get { return fCITY; } set { fCITY = value; EntityState.FieldChange("city"); } }
        private string fCITY;
        public static FieldInfo _city = new FieldInfo("t_smd_CrmSync", "city");

        /// <summary>
        /// district
        /// </summary>
        [Column]
        [IDENTITY]
        public string district { get { return fDISTRICT; } set { fDISTRICT = value; EntityState.FieldChange("district"); } }
        private string fDISTRICT;
        public static FieldInfo _district = new FieldInfo("t_smd_CrmSync", "district");

        /// <summary>
        /// address
        /// </summary>
        [Column]
        [IDENTITY]
        public string address { get { return fADDRESS; } set { fADDRESS = value; EntityState.FieldChange("address"); } }
        private string fADDRESS;
        public static FieldInfo _address = new FieldInfo("t_smd_CrmSync", "address");

        /// <summary>
        /// lat
        /// </summary>
        [Column]
        [IDENTITY]
        public decimal? lat { get { return fLAT; } set { fLAT = value; EntityState.FieldChange("lat"); } }
        private decimal? fLAT;
        public static FieldInfo _lat = new FieldInfo("t_smd_CrmSync", "lat");

        /// <summary>
        /// lon
        /// </summary>
        [Column]
        [IDENTITY]
        public decimal? lon { get { return fLON; } set { fLON = value; EntityState.FieldChange("lon"); } }
        private decimal? fLON;
        public static FieldInfo _lon = new FieldInfo("t_smd_CrmSync", "lon");

        /// <summary>
        /// bmc_id
        /// </summary>
        [Column]
        [IDENTITY]
        public string bmc_id { get { return fBMC_ID; } set { fBMC_ID = value; EntityState.FieldChange("bmc_id"); } }
        private string fBMC_ID;
        public static FieldInfo _bmc_id = new FieldInfo("t_smd_CrmSync", "bmc_id");

        /// <summary>
        /// general_phone
        /// </summary>
        [Column]
        [IDENTITY]
        public string general_phone { get { return fGENERAL_PHONE; } set { fGENERAL_PHONE = value; EntityState.FieldChange("general_phone"); } }
        private string fGENERAL_PHONE;
        public static FieldInfo _general_phone = new FieldInfo("t_smd_CrmSync", "general_phone");

        /// <summary>
        /// total_store_m2
        /// </summary>
        [Column]
        [IDENTITY]
        public decimal? total_store_m2 { get { return fTOTAL_STORE_M2; } set { fTOTAL_STORE_M2 = value; EntityState.FieldChange("total_store_m2"); } }
        private decimal? fTOTAL_STORE_M2;
        public static FieldInfo _total_store_m2 = new FieldInfo("t_smd_CrmSync", "total_store_m2");

        /// <summary>
        /// store_close_date
        /// </summary>
        [Column]
        [IDENTITY]
        public DateTime? store_close_date { get { return fSTORE_CLOSE_DATE; } set { fSTORE_CLOSE_DATE = value; EntityState.FieldChange("store_close_date"); } }
        private DateTime? fSTORE_CLOSE_DATE;
        public static FieldInfo _store_close_date = new FieldInfo("t_smd_CrmSync", "store_close_date");

        /// <summary>
        /// store_close_reason_id
        /// </summary>
        [Column]
        [IDENTITY]
        public string store_close_reason_id { get { return fSTORE_CLOSE_REASON_ID; } set { fSTORE_CLOSE_REASON_ID = value; EntityState.FieldChange("store_close_reason_id"); } }
        private string fSTORE_CLOSE_REASON_ID;
        public static FieldInfo _store_close_reason_id = new FieldInfo("t_smd_CrmSync", "store_close_reason_id");

        /// <summary>
        /// sap_id
        /// </summary>
        [Column]
        [IDENTITY]
        public string sap_id { get { return fSAP_ID; } set { fSAP_ID = value; EntityState.FieldChange("sap_id"); } }
        private string fSAP_ID;
        public static FieldInfo _sap_id = new FieldInfo("t_smd_CrmSync", "sap_id");

        /// <summary>
        /// parent_id
        /// </summary>
        [Column]
        [IDENTITY]
        public string parent_id { get { return fPARENT_ID; } set { fPARENT_ID = value; EntityState.FieldChange("parent_id"); } }
        private string fPARENT_ID;
        public static FieldInfo _parent_id = new FieldInfo("t_smd_CrmSync", "parent_id");

        /// <summary>
        /// owner_id
        /// </summary>
        [Column]
        [IDENTITY]
        public string owner_id { get { return fOWNER_ID; } set { fOWNER_ID = value; EntityState.FieldChange("owner_id"); } }
        private string fOWNER_ID;
        public static FieldInfo _owner_id = new FieldInfo("t_smd_CrmSync", "owner_id");

        /// <summary>
        /// authid
        /// </summary>
        [Column]
        [IDENTITY]
        public string authid { get { return fAUTHID; } set { fAUTHID = value; EntityState.FieldChange("authid"); } }
        private string fAUTHID;
        public static FieldInfo _authid = new FieldInfo("t_smd_CrmSync", "authid");

        /// <summary>
        /// createdate
        /// </summary>
        [Column]
        [IDENTITY]
        public DateTime? createdate { get { return fCREATEDATE; } set { fCREATEDATE = value; EntityState.FieldChange("createdate"); } }
        private DateTime? fCREATEDATE;
        public static FieldInfo _createdate = new FieldInfo("t_smd_CrmSync", "createdate");

        /// <summary>
        /// updatedate
        /// </summary>
        [Column]
        [IDENTITY]
        public DateTime? updatedate { get { return fUPDATEDATE; } set { fUPDATEDATE = value; EntityState.FieldChange("updatedate"); } }
        private DateTime? fUPDATEDATE;
        public static FieldInfo _updatedate = new FieldInfo("t_smd_CrmSync", "updatedate");

        /// <summary>
        /// syncstatus
        /// </summary>
        [Column]
        [IDENTITY]
        public int? syncstatus { get { return fSYNCSTATUS; } set { fSYNCSTATUS = value; EntityState.FieldChange("syncstatus"); } }
        private int? fSYNCSTATUS;
        public static FieldInfo _syncstatus = new FieldInfo("t_smd_CrmSync", "syncstatus");

        /// <summary>
        /// synctimes
        /// </summary>
        [Column]
        [IDENTITY]
        public int? synctimes { get { return fSYNCTIMES; } set { fSYNCTIMES = value; EntityState.FieldChange("synctimes"); } }
        private int? fSYNCTIMES;
        public static FieldInfo _synctimes = new FieldInfo("t_smd_CrmSync", "synctimes");

        /// <summary>
        /// returnmsg
        /// </summary>
        [Column]
        [IDENTITY]
        public string returnmsg { get { return fRETURNMSG; } set { fRETURNMSG = value; EntityState.FieldChange("returnmsg"); } }
        private string fRETURNMSG;
        public static FieldInfo _returnmsg = new FieldInfo("t_smd_CrmSync", "returnmsg");

        [Column]
        [IDENTITY]
        public string store_contact { get { return fSTORE_CONTACT; } set { fSTORE_CONTACT = value; EntityState.FieldChange("store_contact"); } } private string fSTORE_CONTACT; public static FieldInfo _store_contact = new FieldInfo("t_smd_CrmSync", "store_contact");
        [Column]
        [IDENTITY]
        public string street { get { return fSTREET; } set { fSTREET = value; EntityState.FieldChange("street"); } } private string fSTREET; public static FieldInfo _street = new FieldInfo("t_smd_CrmSync", "street");
        [Column]
        [IDENTITY]
        public DateTime? store_open_date { get { return fSTORE_OPEN_DATE; } set { fSTORE_OPEN_DATE = value; EntityState.FieldChange("store_open_date"); } } private DateTime? fSTORE_OPEN_DATE; public static FieldInfo _store_open_date = new FieldInfo("t_smd_CrmSync", "store_open_date");
        [Column]
        [IDENTITY]
        public string status_id { get { return fSTATUS_ID; } set { fSTATUS_ID = value; EntityState.FieldChange("status_id"); } } private string fSTATUS_ID; public static FieldInfo _status_id = new FieldInfo("t_smd_CrmSync", "status_id");
        [Column]
        [IDENTITY]
        public string tinting_ID { get { return fTINTING_ID; } set { fTINTING_ID = value; EntityState.FieldChange("tinting_ID"); } } private string fTINTING_ID; public static FieldInfo _tinting_ID = new FieldInfo("t_smd_CrmSync", "tinting_ID");
        /// <summary>
        /// dispenser_type_id 
        /// </summary>
        [Column]
        [IDENTITY]
        public string dispenser_type_id { get { return fDISPENSER_TYPE_ID; } set { fDISPENSER_TYPE_ID = value; EntityState.FieldChange("dispenser_type_id"); } }
        private string fDISPENSER_TYPE_ID; 
        public static FieldInfo _dispenser_type_id = new FieldInfo("t_smd_CrmSync", "dispenser_type_id");
        [Column]
        [IDENTITY]
        public string shaker_type_id { get { return fSHAKER_TYPE_ID; } set { fSHAKER_TYPE_ID = value; EntityState.FieldChange("shaker_type_id"); } } private string fSHAKER_TYPE_ID; public static FieldInfo _shaker_type_id = new FieldInfo("t_smd_CrmSync", "shaker_type_id");
        [Column]
        [IDENTITY]
        public string pc_type_id { get { return fPC_TYPE_ID; } set { fPC_TYPE_ID = value; EntityState.FieldChange("pc_type_id"); } } private string fPC_TYPE_ID; public static FieldInfo _pc_type_id = new FieldInfo("t_smd_CrmSync", "pc_type_id");
        [Column]
        [IDENTITY]
        public decimal? purchase_cost { get { return fPURCHASE_COST; } set { fPURCHASE_COST = value; EntityState.FieldChange("purchase_cost"); } } private decimal? fPURCHASE_COST; public static FieldInfo _purchase_cost = new FieldInfo("t_smd_CrmSync", "purchase_cost");
        [Column]
        [IDENTITY]
        public decimal? tinting_deposit { get { return fTINTING_DEPOSIT; } set { fTINTING_DEPOSIT = value; EntityState.FieldChange("tinting_deposit"); } } private decimal? fTINTING_DEPOSIT; public static FieldInfo _tinting_deposit = new FieldInfo("t_smd_CrmSync", "tinting_deposit");
        [Column]
        [IDENTITY]
        public string store_name { get { return fSTORE_NAME; } set { fSTORE_NAME = value; EntityState.FieldChange("store_name"); } } private string fSTORE_NAME; public static FieldInfo _store_name = new FieldInfo("t_smd_CrmSync", "store_name");

        [Column]
        [IDENTITY]
        public string wechat_id { get { return fWECHAT_ID; } set { fWECHAT_ID = value; EntityState.FieldChange("wechat_id"); } } private string fWECHAT_ID; public static FieldInfo _wechat_id = new FieldInfo("t_smd_CrmSync", "wechat_id");
        [Column]
        [IDENTITY]
        public string market_name { get { return fMARKET_NAME; } set { fMARKET_NAME = value; EntityState.FieldChange("market_name"); } } private string fMARKET_NAME; public static FieldInfo _market_name = new FieldInfo("t_smd_CrmSync", "market_name");
        [Column]
        [IDENTITY]
        public DateTime update_at { get { return fUPDATE_AT; } set { fUPDATE_AT = value; EntityState.FieldChange("update_at"); } } private DateTime fUPDATE_AT; public static FieldInfo _update_at = new FieldInfo("t_smd_CrmSync", "update_at");
        [Column]
        [IDENTITY]
        public int store_decoration_int { get { return fSTORE_DECORATION_INT; } set { fSTORE_DECORATION_INT = value; EntityState.FieldChange("store_decoration_int"); } } private int fSTORE_DECORATION_INT; public static FieldInfo _store_decoration_int = new FieldInfo("t_smd_CrmSync", "store_decoration_int");
        [Column]
        [IDENTITY]
        public int machine_type { get { return fMACHINE_TYPE; } set { fMACHINE_TYPE = value; EntityState.FieldChange("machine_type"); } } private int fMACHINE_TYPE; public static FieldInfo _machine_type = new FieldInfo("t_smd_CrmSync", "machine_type");
        [Column]
        [IDENTITY]
        public DateTime stallcreated_at { get { return fSTALLCREATED_AT; } set { fSTALLCREATED_AT = value; EntityState.FieldChange("stallcreated_at"); } } private DateTime fSTALLCREATED_AT; public static FieldInfo _stallcreated_at = new FieldInfo("t_smd_CrmSync", "stallcreated_at");
        [Column]
        [IDENTITY]
        public int Owner_Type { get { return fOWNER_TYPE; } set { fOWNER_TYPE = value; EntityState.FieldChange("Owner_Type"); } } private int fOWNER_TYPE; public static FieldInfo _owner_Type = new FieldInfo("t_smd_CrmSync", "Owner_Type");

        [Column]
        [IDENTITY]
        public DateTime last_renovation_date { get { return fLAST_RENOVATION_DATE; } set { fLAST_RENOVATION_DATE = value; EntityState.FieldChange("last_renovation_date"); } } private DateTime fLAST_RENOVATION_DATE; public static FieldInfo _last_renovation_date = new FieldInfo("t_smd_CrmSync", "last_renovation_date");
        [Column]
        [IDENTITY]
        public string house_number { get { return fHouse_Number; } set { fHouse_Number = value; EntityState.FieldChange("house_number"); } } private string fHouse_Number; public static FieldInfo _house_number = new FieldInfo("t_smd_CrmSync", "house_number");
        [Column]
        [IDENTITY]
        public DateTime? store_approve_date { get { return f_STORE_APPROVE_DATE; } set { f_STORE_APPROVE_DATE = value; EntityState.FieldChange("store_approve_date"); } } private DateTime? f_STORE_APPROVE_DATE; public static FieldInfo _STORE_APPROVE_DATE = new FieldInfo("t_smd_CrmSync", "store_approve_date");
        [Column]
        [IDENTITY]
        public string delivery_type { get { return fDelivery_Type; } set { fDelivery_Type = value; EntityState.FieldChange("delivery_type"); } } private string fDelivery_Type; public static FieldInfo _fDelivery_Type = new FieldInfo("t_smd_CrmSync", "delivery_type");
        [Column]
        [IDENTITY]
        public string account_owner { get { return fAccount_owner; } set { fAccount_owner = value; EntityState.FieldChange("account_owner"); } } private string fAccount_owner; public static FieldInfo _fAccount_owner = new FieldInfo("t_smd_CrmSync", "account_owner");
    }
}